<script>
import CreateEditView from '@/mixins/create-edit-view';
import FileSelector, { createOnSelected } from '@/components/form/FileSelector';
import TextAreaAutoGrow from '@/components/form/TextAreaAutoGrow';

export default {
  name: 'HarvesterAdditionalCA',

  components: { FileSelector, TextAreaAutoGrow },

  mixins: [CreateEditView],

  methods: { onKeySelected: createOnSelected('value.value') },
};
</script>

<template>
  <div>
    <div class="row mb-20">
      <div class="col span-12">
        <FileSelector
          class="btn btn-sm bg-primary mb-10"
          :label="t('generic.readFromFile')"
          @selected="onKeySelected"
        />

        <div>
          <TextAreaAutoGrow
            v-model="value.value"
            :min-height="254"
          />
        </div>
      </div>
    </div>
  </div>
</template>
